"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;

var _jsxRuntime = require("react/jsx-runtime");

var _proProvider = require("@ant-design/pro-provider");

var _proUtils = require("@ant-design/pro-utils");

var _antdV = require("antd-v4");

var WrapContent = function WrapContent(props) {
  var _props$autoClearCache = props.autoClearCache,
      autoClearCache = _props$autoClearCache === void 0 ? true : _props$autoClearCache,
      style = props.style,
      className = props.className,
      children = props.children;
  var ErrorComponent = props.ErrorBoundary || _proUtils.ErrorBoundary;
  return (0, _jsxRuntime.jsx)(_proProvider.ConfigProviderWrap, {
    autoClearCache: autoClearCache,
    children: props.ErrorBoundary === false ? (0, _jsxRuntime.jsx)(_antdV.Layout.Content, {
      className: className,
      style: style,
      children: children
    }) : (0, _jsxRuntime.jsx)(ErrorComponent, {
      children: (0, _jsxRuntime.jsx)(_antdV.Layout.Content, {
        className: className,
        style: style,
        children: children
      })
    })
  });
};

var _default = WrapContent;
exports.default = _default;